package com.eshop.service.Impl;

import com.eshop.dao.GoodsDao;
import com.eshop.dao.Impl.GoodsDaoImpl;
import com.eshop.model.Goods;
import com.eshop.service.SaleGoodsService;

import java.util.List;

public class SaleGoodsServiceImpl implements SaleGoodsService {
    GoodsDao goodsDao = new GoodsDaoImpl();

    @Override
    public List<Goods> getGoodsBySales(int num) {
        return goodsDao.queryGoodsBySales(num);
    }
}
